import { asyncFuncCreator } from '../utils';

export function index(key) {
  return asyncFuncCreator({
    constant: 'PROJECT_SETTINGS',
    promise: (client) => client.request({ url: '/project/' + key + '/settings' })
  });
}

export function update(id, values) {
  return asyncFuncCreator({
    constant: 'PROJECT_UPDATE',
    promise: (client) => client.request({ url: '/project/' + id, method: 'put', data: values })
  });
}